package gat.dto.req.backgroundUser;

import java.io.Serializable;

import org.springframework.validation.annotation.Validated;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限用户关联表
 * @author: tmac
 * @email: tmac
 */
@Validated
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel
public class UserRoleReqDto implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 角色id int8
     */
    @ApiModelProperty(value = "角色id")
    @JsonProperty(index = 10)
    private Long roleId;
    /**
     * 用户id int8
     */
    @ApiModelProperty(value = "用户id")
    @JsonProperty(index = 20)
    private Long userId;

    /**
     * 是否为主账户
     */
    @ApiModelProperty(value = "用户id")
    @JsonProperty(index = 20)
    private Boolean isMain;

    /**
     * 所属应用
     */
    @ApiModelProperty(value = "用户id")
    @JsonProperty(index = 20)
    private String system;

}






